package com.bytedance.social.mapper;

import com.bytedance.social.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    public void userPulishComment(Comment comment);

    public Comment selectCommentIsUser(@Param("commentId") Long commentId, @Param("userId") Long userId);

    public void deleteUserComment(@Param("commentId") Long commentId);

    public List<Comment> selectVideoComments(@Param("videoId") Long videoId);

    public void updateComments(@Param("videoId") Long videoId, @Param("videoCommentCount") Long videoCommentCount);

    public Long selectVideoCommentCount(@Param("videoId") Long videoId);

}
